package com.czy.booktest02.demos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czy.booktest02.demos.pojo.po.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    int createOrder(Order order);

    List<Order> selectAllOrder();

    List<Order> selectOrderByUserId(int userId);

    int updateStatusById(int id);
}
